Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Fix of azurerm_virtual_machine.storage_os_disk.image_uri #1799

Merged
merged 3 commits into from
Aug 23, 2018

Conversation

JunyiYi
Copy link

@JunyiYi JunyiYi commented Aug 21, 2018

This PR fixes #838 . Without the fix, the test case will complain that plan is not empty after apply.

Copy link
Contributor

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One thing to fix but this otherwise LGTM 👍

testCheckAzureRMVirtualMachineExists("azurerm_virtual_machine.test", &vm),
testCheckAzureRMVirtualMachineExists("azurerm_virtual_machine.mirror", &mirrorVm),
testCheckAzureRMVirtualMachineVHDExistence("myosdisk1.vhd", true),
testCheckAzureRMVirtualMachineVHDExistence("mirrorosdisk.vhd", true),
Copy link
Contributor

@tombuildsstuff tombuildsstuff Aug 21, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can also check the image_uri field is set correctly in the state here by using:

resource.TestCheckResourceAttrSet("azurerm_virtual_machine.mirror", "storage_os_disk.0.image_uri")
``` #Resolved

Copy link
Collaborator

@WodansSon WodansSon Aug 21, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mentioned this same thing to him last night and I believe he has a commit with the image_uri check in it ready to push. #Resolved

@WodansSon
Copy link
Collaborator

image

Copy link
Collaborator

@WodansSon WodansSon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @JunyiYi I have finished looking over the code and ran the test case. This LGTM!

@WodansSon
Copy link
Collaborator

Re-running the tests with new commit:
image

@WodansSon
Copy link
Collaborator

Re-ran the one test that fail:
image

@tombuildsstuff tombuildsstuff merged commit bbc09ca into master Aug 23, 2018
@tombuildsstuff tombuildsstuff deleted the fix_vmosdisk_imageuri branch August 23, 2018 08:35
tombuildsstuff added a commit that referenced this pull request Aug 23, 2018
torresdal added a commit to torresdal/terraform-provider-azurerm that referenced this pull request Aug 23, 2018
* master: (95 commits)
  Some more AzureStack changes for route table resource and datasource (hashicorp#1807)
  backport AzureStack route resource PR comments (hashicorp#1810)
  Updating to include hashicorp#1799
  Bug Fix of azurerm_virtual_machine.storage_os_disk.image_uri (hashicorp#1799)
  Updating to include hashicorp#1693
  IoT Hub add endpoints and routes (hashicorp#1693)
  Updating to include hashicorp#1789
  Added support for EventHub compatible EndPoints and Paths (hashicorp#1789)
  Updating to include hashicorp#1798
  Remove client side validation for azure network plugin (hashicorp#1798)
  backport azure stack route_table PR review comments (hashicorp#1790)
  Update CHAGELOG.md to include hashicorp#1795
  Fix: Corrected regexp for eventhub name
  reset verb
  fix some pointer dereferences
  Fix indentation on application_gateway.html.markdown (hashicorp#1780)
  folded subscription and [az]schema packages into azure
  consolidate CaseDifference Supression functions
  Cleanup after v1.13.0 release
  v1.13.0
  ...
@tombuildsstuff tombuildsstuff modified the milestones: Soon, Being Sorted Oct 25, 2018
@ghost
Copy link

ghost commented Mar 6, 2019

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost locked and limited conversation to collaborators Mar 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Terraform is not keeping azurerm_virtual_machine.storage_os_disk.image_uri properly
4 participants